package com.itfreer.data.config.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.itfreer.form.api.entity.EntityBase;

/**
 * 配置版本
 */
@Entity(name = "data_config_version")
public class ConfigVersionEntity extends EntityBase implements Serializable {

	private static final long serialVersionUID = -2739195535161688054L;

	/**
	 * 数据ID
	 */
	@Id
	@Column(name = "id", length = 50, nullable = false)
	private String id;

	/**
	 * 当前版本
	 */
	@Column(name = "i_version", nullable = true)
	private Integer version;
	
	/**
	 * 租户ID
	 */
	@Column(name = "s_tenantid", length = 50, nullable = true)
	private String tenantID;

	/**
	 * 租户名称
	 */
	@Column(name = "s_tenantname", length = 50, nullable = true)
	private String tenantName;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}
	
	@Override
	public String getTenantID() {
		return tenantID;
	}

	@Override
	public void setTenantID(String tenantID) {
		this.tenantID = tenantID;
	}

	@Override
	public String getTenantName() {
		return tenantName;
	}

	@Override
	public void setTenantName(String tenantName) {
		this.tenantName = tenantName;
	}
}
